package com.rcloud.server.sealtalk.domain;

import java.util.Date;
import javax.persistence.*;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 烟草经营许可证信息
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "tobacco_license_info")
public class TobaccoLicenseInfo {
    /**
     * 主键ID
     */
    @Id
    @Column(name = "id")
    private Integer id;
    /**
     * 用户ID
     */
    @Column(name = "user_id")
    private Integer userId;

    /**
     * 许可证号
     */
    @Column(name = "license_key")
    private String licenseKey;

    /**
     * 企业（字号）名称
     */
    @Column(name = "company_name")
    private String companyName;

    /**
     * 负责人（经营者）姓名
     */
    @Column(name = "principal_name")
    private String principalName;

    /**
     * 企业类型（组织形式
     */
    @Column(name = "business_type")
    private String businessType;

    /**
     * 经营场所
     */
    @Column(name = "operation_site")
    private String operationSite;

    /**
     * 许可范围
     */
    @Column(name = "tolerance_range")
    private String toleranceRange;

    /**
     * 供货单位
     */
    @Column(name = "supplier")
    private String supplier;

    /**
     * 有效期限自
     */
    @Column(name = "expiry_date_from")
    private String expiryDateFrom;

    /**
     * 有效期限至
     */
    @Column(name = "expiry_date_to")
    private String expiryDateTo;

    /**
     * 添加时间
     */
    @Column(name = "create_time")
    private Date createTime;
}